﻿using Nest;
using System;
using System.Collections.Generic;

namespace Wicture.QPZS.Parts.Models
{
    public class Part
    {
        public string id { get; set; }

        public int partId { get; set; }

        public string partCode { get; set; }
        public string partName { get; set; }

        public string partNameEn { get; set; }

        public int brandId { get; set; }

        public string brandCode { get; set; }

        public string brandName { get; set; }

        public string quantity { get; set; }

        public string unit { get; set; }

        public string firstYear { get; set; }

        public string lastYear { get; set; }

        public decimal cost { get; set; }

        public decimal price { get; set; }

        public string series { get; set; }

        public string hand { get; set; }

        public string properties { get; set; }

        public string remark { get; set; }

        public DateTime? priceUpdatedAt { get; set; }

        public bool disabled { get; set; }

        public string replacementPartNo { get; set; }
        public string priceFC { set; get; }
        public string displayPartCode { set; get; }
        public int? dataSource { set; get; }

        public string traceBack { set; get; }
        public string manufacturer { set; get; }
        public string kehuanzhuang { set; get; }
        public string dangerous { set; get; }
        public string spec { set; get; }
        public string marketCode { set; get; }
        public string marketName { set; get; }
        public int sort { get; set; }
        public string stock { get; set; }
        public string stockInfos { get; set; }
        public string spc { get; set; }
    }

    public class BrandPart
    {
        public int id { set; get; }
        public int articleId { set; get; }
        public string oeNumber { set; get; }
        public string oeCode { set; get; }
        public int manufacturerId { set; get; }
        public string articleNumber { set; get; }
        public string articleCode { set; get; }
        public int productId { set; get; }
        public int supplierId { set; get; }
        public string articleImageFile { set; get; }
        public string articleAttributes { set; get; }
        public string prodDesc { set; get; }
        public string prodGroupDesc { set; get; }
        public string prodUsageDesc { set; get; }
        public string prodNormalDesc { set; get; }
        public string supplierName { set; get; }
        public string supplierDesc { set; get; }
        public string supplierHasNewVersionArticles { set; get; }
        public string supplierNbrOfArticles { set; get; }
        public string manufacturerDesc { set; get; }
        public string manufacturerCode { set; get; }
    }
}
